<%@ Control Language="c#" AutoEventWireup="True" Codebehind="TypeOptionControl.ascx.cs" Inherits="Votations.NSurvey.WebAdmin.UserControls.TypeOptionControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>



<table class=uiTable width=600 border=0><asp:label id=MessageLabel runat="server" ForeColor="Green" Visible="False"></asp:label></table>
<TABLE class=Innertext>
  <TR>
    <TD colSpan=2><FONT class=Titlefont 
      ><asp:label id=fieldTypeOptionTitleLabel runat="server">Label</asp:label></FONT><BR 
      ><IMG src="/admin/Survey/images/Linebreak.Gif" > </TD></TR>
  <TR>
    <TD>&nbsp;&nbsp; </TD>
    <TD>
      <TABLE class=Innertext>
        <TBODY>
        <tr>
          <td width=160><STRONG 
            ><asp:Literal id="FieldNameLabel" runat="server" EnableViewState="False">Field name:</asp:Literal></STRONG> </td>
          <td width=440><asp:textbox id=TitleTextBox runat="server"></asp:textbox></td></tr></TR>
        <TR>
          <TD vAlign=top width=160><STRONG 
            ><asp:Literal id="DataSourceLabel" runat="server" EnableViewState="False" Text="Use a datasource :"></asp:Literal></STRONG> </TD>
          <TD><asp:DropDownList id=DataSourceDropDownList runat="server" AutoPostBack="True" onselectedindexchanged="DataSourceDropDownList_SelectedIndexChanged"></asp:DropDownList></TD></TR>
        <TR>
          <TD vAlign=top width=160><asp:label id=XmlFileNameLabel runat="server" Font-Bold="True" Visible="False">Xml filename :</asp:label></TD>
          <TD><asp:textbox id=XmlFileNameTextbox runat="server" Visible="False"></asp:textbox></TD></TR> 
        <TR>
          <TD vAlign=top width=160><asp:label id="SqlQueryLabel" runat="server" Font-Bold="True" Visible="False">Sql query *:</asp:label></TD>
          <TD><asp:textbox id="SqlQueryTextbox" runat="server" Visible="False" Columns="50" TextMode="MultiLine" Rows="5"></asp:textbox><asp:label id=SqlQueryInfoLabel Visible="False" runat="server"><br>*First two column will be used as value and text</asp:label></TD></TR> 
        <TR>
          <TD vAlign=top width=160><STRONG 
            ><asp:Literal id="SelectionRequiredLabel" runat="server" EnableViewState="False" Text="Selection required :" Visible="False"></asp:Literal></STRONG> </TD>
          <TD><asp:checkbox id="MandatorySelectionCheckBox" runat="server" Visible="False"></asp:checkbox></TD></TR>
 
 <asp:placeholder id=FullOptionPlaceholder runat="server" visible="true">
        <TR>
          <TD width=160><STRONG><asp:Literal id=AllowSelectionLabel runat="server" EnableViewState="False">Allow selection 
            :</asp:Literal></STRONG> </TD>
          <TD><asp:CheckBox id=SelectionTypeCheckBox runat="server"></asp:CheckBox></TD></TR>
        <TR>
          <TD vAlign=top width=160><STRONG><asp:Literal id=FieldEntryLabel runat="server" EnableViewState="False">Field entry 
            :</asp:Literal></STRONG> </TD>
          <TD><asp:CheckBox id=FieldTypeCheckBox runat="server" AutoPostBack="True" oncheckedchanged="FieldEntryChecked"></asp:CheckBox></TD></TR><asp:placeholder id=FieldOptionsPlaceHolder runat="server" visible="false">
        <TR>
          <TD vAlign=top width=160><STRONG><asp:Literal id=FieldWidthLabel runat="server" EnableViewState="False">Field width 
            :</asp:Literal></STRONG> </TD>
          <TD><asp:TextBox id=FieldWidthTextBox runat="server" MaxLength="3" size="3">20</asp:TextBox></TD></TR>
        <TR>
          <TD vAlign=top width=160><STRONG><asp:Literal id=FieldHeightLabel runat="server" EnableViewState="False">Field height 
            :</asp:Literal></STRONG> </TD>
          <TD><asp:TextBox id=FieldHeightTextBox runat="server" size="3">0</asp:TextBox></TD></TR>
        <TR>
          <TD vAlign=top width=160><STRONG><asp:Literal id=FieldLengthLabel runat="server" EnableViewState="False">Field max. length 
            :</asp:Literal></STRONG> </TD>
          <TD><asp:TextBox id=FieldMaxLengthTextBox runat="server" size="3">255</asp:TextBox></TD></TR>
        <TR>
          <TD vAlign=top width=160><STRONG><asp:Literal id=ShownInResultsLabel runat="server" EnableViewState="False">Field shown in results 
            :</asp:Literal></STRONG></TD>
          <TD>
            <P><asp:CheckBox id=FieldShownInResultsCheckBox runat="server"></asp:CheckBox></P></TD></TR>
        <TR>
          <TD width=160><STRONG><asp:Literal id=JavascriptFunctionLabel runat="server" EnableViewState="False">Javascript function name 
            :</asp:Literal></STRONG> </TD>
          <TD><asp:TextBox id=JavascriptFunctionNameTextBox runat="server"></asp:TextBox></TD></TR>
        <TR>
          <TD width=160><STRONG><asp:Literal id=JavascriptErrorMessageLabel runat="server" EnableViewState="False">Error message 
            :</asp:Literal></STRONG> </TD>
          <TD><asp:TextBox id=JavascriptErrorMessageTextBox runat="server"></asp:TextBox></TD></TR>
        <TR>
          <TD vAlign=top noWrap width=160><STRONG><asp:Literal id=JavascriptCodeLabel runat="server" EnableViewState="False">Javascript code :</asp:Literal></STRONG></TD>
          <TD colSpan=2><asp:TextBox id=JavascriptTextBox runat="server" Rows="10" TextMode="MultiLine" Columns="60"></asp:TextBox></TD>
          <TD></TD></TR></asp:placeholder></asp:placeholder></TABLE></TD></TR></TBODY></TABLE>
<asp:button id=CreateTypeButton runat="server" Text="Create type" onclick="CreateTypeButton_Click"></asp:button><asp:button id=ApplyChangesButton runat="server" Text="Apply changes" onclick="ApplyChangesButton_Click"></asp:button><asp:Button id="DeleteTypeButton" runat="server" Text="Delete type" onclick="DeleteTypeButton_Click"></asp:Button><asp:Button id=MakeBuiltInButton Visible="False" runat="server" Text="Make Built In" onclick="MakeBuiltInButton_Click"></asp:Button>
